<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=Access-Control-Allow-Origin content=*><title>aidao-xmc</title><link rel=stylesheet href=//at.alicdn.com/t/font_934997_w9ep6atobqj.css><script src=https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js></script><link href=/static/css/app.9740dc7230a6c3e41ccb2cc639b30bda.css rel=stylesheet></head><body><button id=J_btn class="btn btn-default">支付</button><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.64ae137455155b9b2785.js></script><script type=text/javascript src=/static/js/app.71e1509b3998eeadc9e4.js></script></body><script>function payClick(){

      console.log("----payClick----")
      ap.tradePay({

        orderStr: 'timestamp=2016-12-27%2018%3A00%3A00&method=alipay.trade.app.pay&app_id=2014073000007292......'
      }, function(res){
        ap.alert(res.resultCode);
      });
    }

  var btn = document.querySelector('#J_btn');
  btn.addEventListener('click', function(){
    // ap.tradePay({
    //   orderStr: 'timestamp=2016-12-27%2018%3A00%3A00&method=alipay.trade.app.pay&app_id=2014073000007292......'
    // }, function(res){
    //   ap.alert(res.resultCode);
    // });

    ap.chooseImage(function(res){

      console.log("----res----",res)
    });

    console.log("----tradePay----",ap['chooseImage'])

    console.log("----keep----",ap['alert']())
    ap['alert']("123").then(data => { 

      console.log("----alert----",res)
    })
  
  });</script></html>